home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1997 February / macformat-047.iso / Shareware Plus / Developers / DLOGManager 1.02 / Source Code / macintoshUtil.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-14  |  534 b   |  39 lines  |  [TEXT/KAHL]

  1. /*** File: "macintoshUtil.h"
  2.  *
  3.  *    Some useful macintosh functions.
  4.  *
  5.  ****/
  6. #ifndef __MACINTOSHUTIL__
  7. #define __MACINTOSHUTIL__
  8. #define ERRALERT    128
  9. #define __MACINTOSH__
  10. #include <Types.h>
  11.  
  12. extern int nPassi;
  13.  
  14. /****
  15.  *    exit = testForExit();
  16.  *
  17.  *    Test for Cmd-E (exit from user)
  18.  ***/
  19. Boolean test(void);
  20.  
  21. /****
  22.  *    exit = testForExit();
  23.  *
  24.  *    Test for Cmd-E (exit from user)
  25.  ***/
  26. inline Boolean testForExit(void)
  27. {
  28.     nPassi++;
  29.     if (nPassi/8192*8192 == nPassi)
  30.     {
  31.         nPassi = 0;
  32.         return(test());
  33.     }
  34.     else
  35.         return(false);
  36. }
  37.  
  38. #endif
  39.